<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .active{
            color: red;
        }
        .line{
            color: aquamarine;
        }
    </style>
    <script src="lib/vue.js"></script>
</head>
<body>
<div id="app">
    <h1 :class="{active:isactive,line:isline}">{{message}}</h1>
    <button @click="btnClick">惦记我</button>
    <img :src ="imgUrl" alt="" width="500px">
</div>
<script>
    let app = new Vue({
        el:'#app',
        data:{
            isactive:true,
            isline:false,
            message: 'Hello World',
            imgUrl: 'http://file02.16sucai.com/d/file/2015/0408/779334da99e40adb587d0ba715eca102.jpg'
        },
        methods:{
            btnClick() {
                this.isactive = !this.isactive
                this.isline = !this.isline
            }
        }
    })
</script>
</body>
</html>
